import Layout from '@/layout'

// 拆出来是可行的, 为了后期维护特定模块的路由规则方便!
// 员工模块
export default {
  path: '/employees',
  component: Layout,
  children: [
    // 员工默认页
    {
      // path: '/employees',
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      // meta 给路由规则提供一些额外的信息...
      meta: { title: '员工', icon: 'people' }
    },
    // 员工详情页
    {
      // path: '/employees/detail'
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true
    },
    // 员工打印页
    {
      path: 'print/:id',
      component: () => import('@/views/employees/print'),
      hidden: true
    }
  ]
}
